class animal():
    def __init__(self,name,age,color,food):
        self.name=name
        self.age=age
        self.color=color
        self.food=food
    def run(self):
        return "%s在奔跑"%(self.name)
    def get_age(self):
        return "这只%d岁了"%(self.age)
    def eat(self):
        return "正在吃%s"%(self.food)
xm=animal("熊猫",4,"黑白","竹子")
print(xm.run())
print(xm.get_age())
print(xm.eat())
ga=animal("嘎",3,"白","汉堡")
print(ga.run())
print(ga.get_age())
print(ga.eat())
j=animal("咯咯",3,"黄","跳舞")
print(j.run())
print(j.get_age())
print(j.eat())
